package com.cskaoyan._06oop3._05innerclass._04jingtai;

/**
 * @author Macro_Ray
 * @since 2024/3/14 21:48
 */
// 静态内部类
public class Outer {

    public int a = 10;
    public static int b = 20;

    static class Inner {
        public void show1() {
            System.out.println("非静态的方法被调用了");
        }

        public static void show2() {
            Outer o = new Outer();
            System.out.println(o.a);

            System.out.println(b);
            System.out.println("静态的方法被调用了");
        }

    }

}
